package edu.nakan.numbers;

import java.util.Scanner;

/**
 * @author NakanPhung
 * @date: 7/19/2013
 * @email: cank56hua@gmail.com
 * @project: HomeWorkDay2Problem3
 **/

public class CubeAndSquaredOfNumbersDemo {
	private static Scanner input;

	public static void main(String[] args) {
		CubeAndSquaredOfNumbers number1 = new CubeAndSquaredOfNumbers();

		input = new Scanner(System.in);
		System.out.println("Please input the integer number!");
		int number = input.nextInt();

		// To set number when someone input by keyboard
		number1.setNumber(number);
		int cubeNumber = number1.cubeNumber();
		int squareNumber = number1.squareNumber();

		// To print the cubenumber and the squarenumber of the number

		System.out.println("The Cube Number of the number is: " + cubeNumber);
		System.out.println("\nThe Cube Number of the number is: "
				+ squareNumber);

	}
}
